/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package website.impl;

import org.eclipse.emf.ecore.EClass;

import website.TextBox;
import website.TextType;
import website.WebsitePackage;

/**
 * <!-- begin-user-doc -->
 * An implementation of the model object '<em><b>Text Box</b></em>'.
 * <!-- end-user-doc -->
 * <p>
 * The following features are implemented:
 * <ul>
 *   <li>{@link website.impl.TextBoxImpl#getType <em>Type</em>}</li>
 *   <li>{@link website.impl.TextBoxImpl#getSize <em>Size</em>}</li>
 *   <li>{@link website.impl.TextBoxImpl#getMaxLength <em>Max Length</em>}</li>
 * </ul>
 * </p>
 *
 * @generated
 */
public class TextBoxImpl extends FormTagImpl implements TextBox {
	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected TextBoxImpl() {
		super();
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected EClass eStaticClass() {
		return WebsitePackage.Literals.TEXT_BOX;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public TextType getType() {
		return (TextType)eGet(WebsitePackage.Literals.TEXT_BOX__TYPE, true);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void setType(TextType newType) {
		eSet(WebsitePackage.Literals.TEXT_BOX__TYPE, newType);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getSize() {
		return ((Integer)eGet(WebsitePackage.Literals.TEXT_BOX__SIZE, true)).intValue();
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void setSize(int newSize) {
		eSet(WebsitePackage.Literals.TEXT_BOX__SIZE, new Integer(newSize));
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getMaxLength() {
		return ((Integer)eGet(WebsitePackage.Literals.TEXT_BOX__MAX_LENGTH, true)).intValue();
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void setMaxLength(int newMaxLength) {
		eSet(WebsitePackage.Literals.TEXT_BOX__MAX_LENGTH, new Integer(newMaxLength));
	}

} //TextBoxImpl
